package com.scau.clothes.service;

import com.scau.clothes.dao.OrderDao;
import com.scau.clothes.pojo.Order;

import java.math.BigDecimal;

public interface OrderService extends OrderDao {
    /**
     * 创建订单并写入到redis中
     * @param userId
     * @return
     */
    Order createOrderByUserId(int userId);

    /**
     * 将order与oc写入到mysql并从redis中删除
     * @param userId
     */
    Order payTheOrderByUserId(int userId, int payType);
}
